from skimage import data,io
from matplotlib import pyplot as plt
#����ͼ��
image=data.coffee()
#�ֱ�ȡ���졢�̡���������ɫͨ��
image_r=image[:,:,0]
image_g=image[:,:,1]
image_b=image[:,:,2]
#��ɫ����ɫ����
temp=image_r
image_r=image_b
image_b=temp
#���������ͨ����ɫ���¸�ֵ��ͼ��
image[:,:,0]=image_r
image[:,:,2]=image_b
#ͼ����ʾ
plt.imshow(image)
plt.show()
''''''